/*
 * Singularity Engine
 * Copyright (C) 2010 Vyacheslav Vorobyov, All rights reserved.
 * See LICENSE for full license information.
 */

/**
 * 
 */
package org.singularity.mapred.util;

import org.singularity.io.DME;
import org.singularity.io.Pipe;
import org.singularity.io.DME.Code;
import org.singularity.mapred.util.AbstractCartesianRedFun.Accumulator;

/**
 * @author vjache
 *
 */
public abstract class AccumulatorAdapter<RT> implements Accumulator<RT> {

	/**
	 * 
	 */
	public AccumulatorAdapter() {
	}

	@Override
	public void onFinish(Code aDmeCode, Pipe<DME<RT>> aOut) throws Exception {}

	@Override
	public void onToken(Code aDmeCode, Pipe<DME<RT>> aOut, Object[] aToken) throws Exception {}

}
